<?php 		
$cart = $_SESSION["CART"];
		if($cart){
		$idlist = "";
		$total=0;
		foreach(array_keys($cart) as $value){
			$idlist = $idlist.$value.",";
		}
		$idlist = $idlist."0";
		$sql5 = "SELECT * FROM product WHERE pID IN (".$idlist.")";
	
		require_once("connect.php");
		$result5 = mysql_query($sql5) or die("Loi ".$sql5);
		while($row5 = mysql_fetch_array($result5))
		{
	
 		?>
		<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.style1 {font-family: tahoma}
.style2 {color: #FF0000}
.style4 {
	color: #FF0000;
	text-decoration: none;
	float: none;
	width: auto;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
}
.style8 {font-size: 12px}
-->
        </style>
<center>
  <img src="images/<?php echo $row5["pImage"]?>" onClick="window.location='product_view_chitietsp.php?pID=<?php echo $row5["pID"]?>'" width="50" height="50" class="over"><br><a href="product_view_chitietsp.php?pid=<?php echo $row5["pID"]?>" class="style1"><span class=style2><font style="font-size:13px;color=#006633"><?php  echo $row5["pName"]?></font></span></a>(<?php echo GetQuantity($row5["pID"])?>)
</center>
<hr width=68%>

    <?php 
	 $total += $row5["pPrice"]*GetQuantity($row5["pID"]);
		}?>
    <div align="center" class="style2">Tổng tiền : <?php echo $total;?>VNĐ;</div>
    <hr width="86%">
<div align="center"><a href="cart.php"><img src="images/giohang01.png" class="style4" /></a></div>
    <?php 
		$_SESSION["disableadd"]=1;
	}else {?><center>
      <br><span class="style1 style2 style8"><img src="images/giohang02.png" /></span><span class="style4">
      </span>
    </center>
    <?php  $_SESSION["disableadd"]=0;}?>